<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp" %>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<title>列表 - easyui</title>
		<%@ include file="/common/include/title.jsp" %>
	</head>
	<body>
		<div id="dataDialog" class="easyui-panel" title="商品查看"  
			data-options="iconCls:'icon-save'">
			<table>
				<tr id="specDiv">
					<td>
						分类:
					</td>
					<td>
						${requestScope.goods.goodsCate.name }
					</td>
				</tr>
				<c:forEach items="${requestScope.goods.specArr }" var="spec" varStatus="stat">
					<tr>
						<td>
							${spec.name }:
						</td>
						<td>
							
						</td>
					</tr>
					
					<!-- 系列 -->
					<c:forEach items="${spec.keys }" var="keys" varStatus="stat1">
						<tr>
							<td>
								${keys.name }:
							</td>
							<td>
								${keys.values }
							</td>
						</tr>
					</c:forEach>
				</c:forEach>
				<tr>
					<td>
						品牌:
					</td>
					<td>
						${requestScope.goods.goodsBrand.name }
					</td>
				</tr>
				<tr>
					<td>
						前台名字:
					</td>
					<td>
						${requestScope.goods.name }
					</td>
				</tr>
				<tr>
					<td>
						后台名字:
					</td>
					<td>
						${requestScope.goods.title }
					</td>
				</tr>
				<tr>
					<td>
						拼音 (url):
					</td>
					<td>
						${requestScope.goods.url }
					</td>
				</tr>
				<tr>
					<td>
						重量:
					</td>
					<td>
						${requestScope.goods.weight }
					</td>
				</tr>
				<tr>
					<td>
						库存量:
					</td>
					<td>
						${requestScope.goods.remainNum }
					</td>
				</tr>
				<tr>
					<td>
						市场价:
					</td>
					<td>
						${requestScope.goods.marketPrice }
					</td>
				</tr>
				<tr>
					<td>
						现价:
					</td>
					<td>
						${requestScope.goods.price }
					</td>
				</tr>
				<tr>
					<td>
						发布时间:
					</td>
					<td>
						<fmt:formatDate value="${requestScope.goods.pubTime }" pattern="yyyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
				<tr>
					<td>
						状态:
					</td>
					<td>
						${requestScope.goods.statusStr }
					</td>
				</tr>
				<tr>
					<td>
						内容:
					</td>
					<td>
					</td>
				</tr>
			</table>
			${requestScope.goods.content}
		</div>
	</body>
</html>
<script type="text/javascript">
//实例化编辑器
//建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
// 参数为id的script
var ue = UE.getEditor('content');
</script>